package com.heny.nc.model;

import com.heny.nc.service.DataStringUtils;
import lombok.Data;

/**
 * @author litao.cc
 * @version NCModel.java v0.1 t2025/4/26 17:54
 * @date 2025/4/26 17:54
 * @description nc文件数据模型
 */
@Data
public class NCModel {
    private double lon;
    private double lat;
    private double data;
    private String lonString;
    private String latString;
    private String dataString;

    public NCModel(){}

    public NCModel(double lon, double lat, double data) {
        this.lon = lon;
        this.lat = lat;
        this.data = data;

        this.lonString = DataStringUtils.removeEnd0(String.format("%.2f", lon));
        this.latString = DataStringUtils.removeEnd0(String.format("%.2f", lat));
        this.dataString = DataStringUtils.removeEnd0(String.format("%.2f", data));
    }


}
